import { AUTH_ROLE_LIST } from '@/config/api'
import setupMock, { successResponseWrap } from '@/utils/setup-mock'
import Mock from 'mockjs'

setupMock({
    setup() {
        Mock.mock(new RegExp(AUTH_ROLE_LIST), () => {
            const arr = Mock.mock({
                'array|1-5': [
                    {
                        id: '@id',
                        name: '@cname',
                        'sort|+1': 1,
                        remark: '@cparagraph'
                    }
                ]
            })
            return successResponseWrap(arr.array)
        })
    }
})
